package Hibernate;
import org.hibernate.Session;
public class UserManager {
	private Session session = null;
	public UserManager(Session session) {
		if(session == null)
			throw new
			RuntimeException("Invalid session object.");
		this.session = session;
		}
	public void saveUser(User user){
		session.save(user);
		}
	public void updateUser(User user){
		session.update(user);
		}
	public void deleteUser(User user) {
		session.delete(user);
		}
}
